package com.work.work.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.work.work.dto.ProjectResourceDetailDTO;
import com.work.work.entity.Resource;

import java.math.BigDecimal;
import java.util.List;

public interface ResourceService extends IService<Resource> {
    Page<Resource> getResourcesByProjectId(Integer projectId, Integer current, Integer size);
    Page<Resource> getResourcesByType(String resourceType, Integer current, Integer size);
    boolean deductResourceQuantity(Integer resourceId, BigDecimal quantity);
    ProjectResourceDetailDTO getProjectResourceDetail(Integer projectId);

}